Fix swapped lat/lon in KML read.
authorrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Tue, 5 Oct 2010 20:54:38 +0000 (20:54 +0000)
committerrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Tue, 5 Oct 2010 20:54:38 +0000 (20:54 +0000)
gpsbabel/kml.c

index 7d7f8203ee483cf0e06950c4fb9f52064ec29bbd..e7285c721d17634045f90e637ebdaeee9c65fc9e 100644 (file)
@@ -245,7 +245,7 @@ void wpt_coord(const char *args, const char **attrv)
        int n = 0;
        double lat, lon, alt;
        // Alt is actually optional. 
-       n = sscanf(args, "%lf,%lf,%lf", &lat, &lon, &alt);
+       n = sscanf(args, "%lf,%lf,%lf", &lon, &lat, &alt);
        if (n >= 2) {
                wpt_tmp->latitude = lat;
                wpt_tmp->longitude = lon;